package com.example.webbackend.repository;

import com.example.webbackend.model.Message;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface MessageRepository extends JpaRepository<Message, Long> {
    List<Message> findByGroupIdOrderByCreateTimeAsc(Long groupId);
    List<Message> findAllByIdIn(List<Long> ids);
}